import {createRouter, createWebHistory} from 'vue-router';

import Home from '@/views/Home.vue';
import ConfirmInfo from '@/views/ConfirmInfo';
import AppInfo from '@/components/info/AppInfo';
import UserInfo from '@/components/info/UserInfo';
import DocList from '@/components/docs/doc/DocList';

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  {
    path: '/confirmInfo',
    name: 'confirmInfo',
    component: ConfirmInfo,
  },
  {
    path: '/confirmInfo/appBaseInfo',
    name: 'appInfo',
    component: AppInfo,
  },
  {
    path: '/confirmInfo/userInfo',
    name: 'userInfo',
    component: UserInfo,
  },
  {
    path: '/docs/docList',
    name: 'docList',
    component: DocList,
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
